import axios from 'axios'
// 天气
export const Tianqi = (params) => {
    return axios({
        method: 'GET',
        url: 'https://api.vvhan.com/api/weather?city=北京&type=week',
        params: params
    })
}

// 学生分布情况
export const getXueSheng = () => {
    return axios({
        url: 'http://localhost:3002/v1.0/api/intelligentDetection/data'
    })
}


// 水电
export const getWearth = () => {
    return axios({
        url: 'http://localhost:3002/v1.0/api/intelligentDetection/dataTop',
    })
}
// 访客
export const getFangke = () => {
    return axios({
        url: 'http://localhost:3002/v1.0/api/intelligentDetection/dataBottom'
    })
}
// 城市
export const getChengshi = (data) => {
    return axios({
        url: 'http://localhost:3002/v1.0/api/student/stats/distribution',
        data
    })
}
// 近三年来毕业人员去向
export const getQuxiang = () => {
    return axios({
        url: 'http://localhost:3002/v1.0/api/student/stats/distribution'
    })
}
// 毕业生流向城市
export const getBiye = () => {
    return axios({
        url: "http://localhost:3002/v1.0/api/student/stats/distribution"
    })
}

// 地图
export const Map = (adcode) => {
    return axios({
        url: `https://geo.datav.aliyun.com/areas_v3/bound/${adcode}_full.json`

    })
}